package devicemanager

func NewWeightPlatform(base deviceBase) IDevice {
	return &WeightPlatform{deviceBase: base}
}

//AutoDoor 自动门
type WeightPlatform struct {
	deviceBase
}

func (dev *WeightPlatform) OpenCMD() map[string]interface{} {
	return map[string]interface{}{"weighing_platform_cmd": 1}
}

func (dev *WeightPlatform) CloseCMD() map[string]interface{} {
	return map[string]interface{}{"weighing_platform_cmd": 0}
}

func (dev *WeightPlatform) OpenStatus() deviceStatus {
	return devStatusCanPick
}

func (dev *WeightPlatform) CloseStatus() deviceStatus {
	return devStatusCanPut
}
